Flex Build: org.xml.sax.SAXParseException :The entity name must immediately follow the ‘&’ in the entity reference

Categories: Flex; Tagged with: ; @ January 13th, 2012 23:25

在过去接近4年的时间里, 很少使用MXML, 几乎都是纯AS, 最近操作了一点点MXML, 譬如:

<s:Button enabled=”isDirty() && canSaveNow()” />

 

在build的时候遇到错误:

org.xml.sax.SAXParseException :The entity name must immediately follow the ‘&’ in the entity reference

Google了一下, XML解析的问题, 解决方法:

&& 替换为:  [&amp;&amp;]

<s:Button enabled=”isDirty() &amp;&amp; canSaveNow()” />

<->



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.